package com.itfreer.data.report;

import java.util.List;

import javax.persistence.EntityManager;

import org.springframework.beans.factory.annotation.Autowired;

import com.itfreer.data.report.dao.BaseReportDao;

/**
 * 定义表单下标准Service实现基类
 */
public abstract class JdbcBaseReportDaoImp implements BaseReportDao {

	@Autowired
	protected EntityManager em;

	@Override
	public List<?> getReportData(String sql) {
		List<?> list = em.createNativeQuery(sql).getResultList();
		return list;
	}
}